import request from '@/utils/request';

export async function getEncoderConfigByPage(params: any) {
  return request('/api/drivepara/getEncoderConfigByPage', {
    method: 'POST',
    data: params,
  });
}

export async function addEncoderConfig(params: any) {
  return request('/api/drivepara/addEncoderConfig', {
    method: 'POST',
    data: params,
  });
}

export async function delEncoderConfig(params: any) {
  return request('/api/drivepara/delEncoderConfig', {
    method: 'POST',
    data: params,
  });
}


export async function updateEncoderConfig(params: any) {
  return request('/api/drivepara/updateEncoderConfig', {
    method: 'POST',
    data: params,
  });
}

export async function getEncoderConfigList(params: any) {
  return request('/api/drivepara/getEncoderConfigList', {
    method: 'POST',
    data: params,
  });
}

export async function uploadEncoderExcel(params: any) {
  return request('/api/drivePara/uploadEncoderExcel', {
    method: 'POST',
    requestType: 'form',
    data: params,
  });
}